<div class="posts view">
	<h2><?php  echo __('Post');?></h2>
	<div class="clear"></div>
	<div class="actions selected">
		<?php 
			echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $post['Post']['id'],'d'=>$post['Post']['domain_id']), null, __('Are you sure you want to delete # %s?', $post['Post']['id']));
		?>
		
	</div>
	<div class="clear"></div>
	
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($post['Post']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($post['Post']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Content'); ?></dt>
		<dd>
			<?php echo h($post['Post']['content']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($post['Post']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($post['Post']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
	
	
	
	<div class="related">
		<h3><?php echo __('Related Articles');?></h3>
		
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __('Id'); ?></th>
			<th><?php echo __('Domain Id'); ?></th>
			<th><?php echo __('Name'); ?></th>
			<th><?php echo __('Modified'); ?></th>
			<th><?php echo __('Status'); ?></th>
			<th class="actions"><?php echo __('Actions');?></th>
		</tr>
		<?php if (!empty($post['Article'])):?>
		<?php
			$i = 0;
			foreach ($post['Article'] as $article): ?>
			<tr>
				<td><?php echo $article['id'];?></td>
				<td><?php echo $article['domain_id'];?></td>
				<td><?php echo $article['name'];?></td>
				<td><?php echo $article['modified'];?></td>
				<td><?php echo $article['status'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'articles', 'action' => 'view', $article['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		<?php endif; ?>
		</table>
	

	</div>
	<div class="related">
		<h3><?php echo __('Related Comments');?></h3>
		
		<table cellpadding = "0" cellspacing = "0">
		<tr>
			<th><?php echo __('Id'); ?></th>
			<th><?php echo __('Name'); ?></th>
			<th><?php echo __('Content'); ?></th>
			<th class="actions"><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add','p'=>$post['Post']['id']));?></th>
		</tr>

		<?php if (!empty($post['Comment'])):?>
		<?php
			$i = 0;
			foreach ($post['Comment'] as $comment): ?>
			<tr>
				<td><?php echo $comment['id'];?></td>
				<td><?php echo $comment['name'];?></td>
				<td><?php echo $comment['content'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		<?php endif; ?>
		</table>
	

	</div>

</div>
<div class="actions">	
	<?php echo $this->element('/menu/main')?>	
	<?php echo $this->element('/menu/settings')?>	
</div>
